package com.cly.feign;

import com.cly.domain.User;
import com.cly.feign.hystrix.ProdCommUserFeignHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "member-service", fallback = ProdCommUserFeignHystrix.class)
public interface ProdCommUserFeign {

    /**
     * 远程调用获取用户集合的方法
     * @param userIds
     * @return
     */
    @PostMapping("/p/user/getUserList")
    List<User> getUserList(@RequestBody List<String> userIds);
}
